package com.matace.keychain.data;

import android.content.Context;
import com.matace.keychain.domain.RegisterRepository;

public class RegisterRepositoryImpl implements RegisterRepository {
    private final Context context;

    public RegisterRepositoryImpl(Context context) {
        this.context = context;
    }

    @Override
    public boolean register(String username, String email, String password) {
        // 这里只做简单的本地校验，实际项目应调用后端接口
        // 假设注册总是成功
        DatabaseManager databaseManager = new DatabaseManager(context);
        return databaseManager.registerUser(username, email, password);
    }
}